import service from "@/utils/request"
interface OrderSummaryType {
  endSysDate: string//	结束时间	string	body	true
  lotNo: string//	指令ID	string	body	true
  pageNum: number//		integer	body	true
  pageSize: number//		integer	body	true
  process: string//	工艺	string	body	true
  startSysDate: string//	起始时间	string	body	true
  status: string//	审核标志位	integer	body	true
  style: string//	型体	string	body	true
  vendor: string//	负责厂商	string	body	true
}
interface TableListType {
  lists?: never[]
  list: [],
  total: number,
  pageNum?: number,
  pageSize?: number,
  totalDays?: number,
  totalOrders?: number,
}
interface SelectListType {
  brands: [],
  samples: [],
  seasons: [],
}

export default {
  // 获取表格列表
  getTableList(params: any) {
    return service.put<any, TableListType>('/pcFactorWork/listDhHead', params)
  },
  getTableList2(params: any) {
    return service.get<any, any>(`/pcFactorWork/listDhDetail/${params}`,)
  },

  // 获取下拉列表
  getSelectList() {
    return service.get<any, string[]>('/pcOrder/pcAggScheduleCondition')
  },
  // 批量审核
  BatchReview(params: any) {
    return service.put<any, any>('/pcFactorWork/auditDhDetail', params)
  },
}